@echo off

REM 获取当前日期（格式：YYYYMMDD）
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "datetime=%%a"
set "log_date=%datetime:~0,4%%datetime:~4,2%%datetime:~6,2%"

set "PROJECT_DIR=D:/crypto_quant"
cd /d "%PROJECT_DIR%"
set PYTHONPATH=D:/crypto_quant;%PYTHONPATH%

echo "daily_index_components_update"
python ./TQR_Applications/windows_jobs/app/daily_index_components_update.py >> D:/crypto_quant/logs/daily_index_components_update_%log_date%.txt 2>&1